import React from 'react'
import {withRouter} from 'react-router-dom'
import { connect } from 'react-redux'
import action from '../../store/action/index.js'
class FrontCover extends React.Component {
    constructor() {
        super();
        this.state = {
            msg: 'FrontCover'
        }
    }
    render() {
        return (
            <div className="FrontCover">
                <p></p>
                <div>
                    <img src={require('../../img/fengmian.png').default} />
                </div>
            </div>
        )
    }
    componentDidMount() {
        let {getHomeData}=this.props
        getHomeData()
        setTimeout(() => {
            this.props.history.push('/home')
        }, 3000);

    }
}
export default connect(state => state.Homedata,action.homedata)(withRouter(FrontCover))